﻿using System;
using System.Collections.Generic;
using GameFramework.Battle.Core;
using Gameplay.PVE.Utils;
using RootMotion.FinalIK;
using UnityEngine;

namespace Gameplay.PVE.Survivor
{
    public class ActiveSkill: SkillBase
    {

        protected override Transform GetBulletCreateEffectParent()
        {
            return unit.gunPoint;
        }

        protected override Vector3 GetBulletStartForward(int bulletIndex)
        {
            return base.GetBulletStartForward(bulletIndex);
        }

        protected override void UpdateCast()
        {
            base.UpdateCast();
        }

        protected override void OnStart()
        {
            base.OnStart();
            //播放特效
            BattleEffectManager.Instance.CreateEffectAutoDispose(BattleConstValue.SkillEffectCommon, unit.AimPoint.position,
                unit.Forward,1,unit.AimPoint);
        }
    }
}
